package com.wdh.kjs.activity;

import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;

import com.wdh.kjs.R;
import com.wdh.kjs.model.PlatformInfoForAppHtml;

public class RegisterAgreementActivity extends BaseTopActivity {
    private WebView mwebview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register_agreement);
        initView();
    }
    private void initView(){
        initTopBar("用户服务协议");
        mwebview=(WebView) findViewById(R.id.investPlatinf_webview);
        String htmlstr= PlatformInfoForAppHtml.htmlStr;
        mwebview.loadDataWithBaseURL(null, htmlstr, "text/html", "utf-8", null);
        mwebview.getSettings().setJavaScriptEnabled(true);
        mwebview.setWebChromeClient(new WebChromeClient());
    }
}
